import { describe, expect, test } from 'vitest'

describe('页面导入', () => {
    test('正常导入', async () => {
        const cmp = await import('../../src/components/TestHelloWorld.vue')
        expect(cmp).toBeDefined()
    })

    test('动态导入', async () => {
        const name = 'TestHelloWorld'
        const cmp = await import(`../../src/components/${name}.vue`)
        expect(cmp).toBeDefined()
    })
})
